package cn.cdeden.knowledge.domain;

import cn.cdeden.knowledge.domain.dto.FilesDistributeDto;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;

/**
 * 分发&接收
 */
@Data
@TableName(value = "files_distribute")
@AutoMappers({@AutoMapper(target = FilesDistributeDto.class)})
public class FilesDistribute {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "distribute_time")
    private Date distributeTime;

    @TableField(value = "distributor")
    private String distributor;

    @TableField(value = "tree_node_id")
    private String treeNodeId;

    @TableField(value = "file_name")
    private String fileName;

    @TableField(value = "`type`")
    private String type;

    @TableField(value = "distributor_name")
    private String distributorName;

    /**
     * 模块
     */
    @TableField(value = "modules")
    private String modules;
}
